Skip to content

fix: restore node shebang in published bin scripts#674

Merged
FL4TLiN3 merged 3 commits intomainfrom
fix/shebang-node
Mar 3, 2026
Merged

fix: restore node shebang in published bin scripts#674
FL4TLiN3 merged 3 commits intomainfrom
fix/shebang-node

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Mar 3, 2026

Summary

  • Restore #!/usr/bin/env node shebang in @perstack/base and @perstack/create-expert-skill bin scripts
  • These were changed to #!/usr/bin/env bun during the Bun toolchain migration (chore: migrate toolchain to Bun #599), but the scripts use no bun-specific APIs

Problem

Job executor containers have only Node.js installed. When @perstack/base is resolved via npx (version-pinned experts), the #!/usr/bin/env bun shebang causes immediate failure:

/usr/bin/env: 'bun': No such file or directory

This has been breaking nearly all jobs since 2/25.

Test plan

  • Typecheck passes (24/24)
  • Unit tests pass (20/20)
  • Build output confirms #!/usr/bin/env node in dist

🤖 Generated with Claude Code

FL4TLiN3 and others added 3 commits March 3, 2026 05:13
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The shebang in @perstack/base and @perstack/create-expert-skill was
changed from `#!/usr/bin/env node` to `#!/usr/bin/env bun` during the
Bun toolchain migration (#599). This breaks execution in environments
where only Node.js is available (e.g. job executor containers), causing
`/usr/bin/env: 'bun': No such file or directory`.

These scripts use no bun-specific APIs and run fine under Node.js.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 8b7aaac into main Mar 3, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the fix/shebang-node branch March 3, 2026 06:20
@FL4TLiN3 FL4TLiN3 mentioned this pull request Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant